package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * @author RJ
 * @date 2022/9/13 16:41
 */
/*
    用户管理
 */
@TableName("user_info")
public class UserBean {
    //用户id
    @TableId(value = "user_id", type = IdType.AUTO)
    private Integer userId;
    //用户名
    @TableField("user_name")
    private String userName;
    //密码
    @TableField("user_pwd")
    private String userPwd;
    //真实姓名
    @TableField("user_real_name")
    private String userRealName;
    //用户等级
    @TableField("user_grade")
    private String userGrade;

    public UserBean() {
    }

    public UserBean(String userName, String userPwd, String userRealName, String userGrade) {
        this.userName = userName;
        this.userPwd = userPwd;
        this.userRealName = userRealName;
        this.userGrade = userGrade;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPwd() {
        return userPwd;
    }

    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd;
    }

    public String getUserRealName() {
        return userRealName;
    }

    public void setUserRealName(String userRealName) {
        this.userRealName = userRealName;
    }

    public String getUserGrade() {
        return userGrade;
    }

    public void setUserGrade(String userGrade) {
        this.userGrade = userGrade;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPwd='" + userPwd + '\'' +
                ", userRealName='" + userRealName + '\'' +
                ", userGrade='" + userGrade + '\'' +
                '}';
    }
}
